package Com.amit.Thread;

public class Lab7 extends Thread {

	@Override
	public void run() {
		
		System.out.println("Running");
	}
	
	public static void main(String[] args) {
		
		Lab7 t1=new Lab7();
		Lab7 t2=new Lab7();
	
		System.out.println("name of t1"+t1.getName());
		System.out.println("name od t2"+t2.getName());
		
		System.out.println("id of t1"+t1.getId());
		t1.start();
		t2.start();
		
		t1.setName("amit");
		System.out.println("name of t1"+t1.getName());
		
		
	}

}
